<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition template="/template/template.xhtml">
		<ui:define name="title">#{aqarMsgs.Aqarat_Expenses_CreateExpenses_PageTitle}</ui:define>
		<ui:define name="manuBar">
			<ui:include src="/controlling/aqarat/aqaratMenu.xhtml" />
		</ui:define>

		<ui:define name="content">
			<h:form id="b_frm">
				<p:panel header="#{aqarMsgs.Aqarat_Expenses_CreateExpenses_ExpensesDetails}">
					<p:panel>
					<h:panelGrid columns="2">
						<h:outputText value="#{aqarMsgs.Aqarat_Building_Name}" />
						<p:selectOneMenu id="build" required="true" requiredMessage="#{aqarMsgs.Aqarat_Building_NameRequired}"
							value="#{expensesBean.expens.buildingId}">
							<f:selectItem itemLabel="" itemValue="" />
							<f:selectItems value="#{expensesBean.buildingList}" var="build"
								itemLabel="#{build.name}" itemValue="#{build.recid}" />
						</p:selectOneMenu>
					</h:panelGrid>
					</p:panel>
					<p:panel>
						<h:panelGrid columns="2">
							<h:outputText value="#{aqarMsgs.Aqarat_Expenses_Money}" />
							<p:inputText value="#{expensesBean.expens.money}" required="true"
								requiredMessage="#{aqarMsgs.Aqarat_Expenses_MoneyRequired}"
								converterMessage="#{aqarMsgs.Aqarat_Expenses_MoneyConverter}">
								<f:converter converterId="javax.faces.Number" />
							</p:inputText>

							<h:outputText value="#{aqarMsgs.Aqarat_Expenses_Description}" />
							<p:inputTextarea value="#{expensesBean.expens.description}"
								cols="80" rows="5" autoResize="false" required="true"
								requiredMessage="#{aqarMsgs.Aqarat_Expenses_DescriptionRequired}" />

						</h:panelGrid>
					</p:panel>
					<p:commandButton value="#{aqarMsgs.Aqarat_General_Save}"
						actionListener="#{expensesBean.saveExpenses}"
						onstart="waiteDialog.show();" oncomplete="waiteDialog.hide();"
						update="msgs" />
					<p:messages id="msgs" />
				</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>
</body>
</html>
